<div class="content-section implementation GridDemo clearfixes location">
  <div class="ui-g ">
    <div class="ui-g-12">
      <p-dataTable emptyMessage="没有数据" [value]="materials" [lazy]="true" [rows]="10" [paginator]="true" [rowsPerPageOptions]="[5,10,20]"
                   [totalRecords]="totalRecords" (onLazyLoad)="loadCarsLazy($event)" [stacked]="stacked" [responsive]="true" >
        <p-column  *ngFor="let col of cols" field="{{col.field}}" header="{{col.header}}"></p-column>
        <p-column header="库存位置">
          <ng-template let-car="rowData" pTemplate="body" let-i="rowIndex">
            <div class="ui-g">
              <div class="ui-g-6  ui-fluid">
                <input  type="text" pInputText  name="inspectiondepartment"
                        readonly  [(ngModel)]="dataSource[i].location"  />
              </div>
              <div class="ui-g-6">
                <button  pButton  type="button" (click)="showLoactionMask(i)" label="选择"></button>
              </div>
            </div>
          </ng-template>
        </p-column>
      </p-dataTable>
    </div>
    <div class="ui-grid-col-6">
      <button  pButton  type="button" (click)="sureApproved()" label="确认入库"></button>
      <button  pButton  type="button"  (click)="goBack()" label="取消"></button>
    </div>
  </div>
</div>
  <app-add-inventory-location
    *ngIf="showLocation"
    (closeMask)="closeLocationMask($event)"
    (sureButton)="nodeTree($event)"
    [pnAnddataSource]="pnAnddataSource"
    [treeState]="treeState" [sid]="sid"
    (updateDev)="updateLocation($event)"
  ></app-add-inventory-location>
  <!--<app-add-inventory-location *ngIf="showLocation" (closeMask)="closeLocationMask($event)" (addTree)="nodeTree($event)" [treeState]="treeState"></app-add-inventory-location>-->
